package edu.ucla.cs.rpc.multicast.util.token;

/**
 * Exception thrown when attempting to add a duplicate element to a set.
 * 
 * @see edu.ucla.cs.rpc.multicast.util.token.Token.java
 * @author Philip Russell Chase Covello
 * 
 */

public class DuplicateEntryException extends Exception {

	private static final long serialVersionUID = 1L;

	private final String infoString = "Attempt to add a duplicate entry to a collection that already contains an instance of the entry.";

	public DuplicateEntryException() {
		super();
		// TODO Auto-generated constructor stub
	}

	public String toString() {
		return this.infoString;
	}

	public DuplicateEntryException(String arg0) {
		super(arg0);
		// TODO Auto-generated constructor stub
	}

	public DuplicateEntryException(String arg0, Throwable arg1) {
		super(arg0, arg1);
		// TODO Auto-generated constructor stub
	}

	public DuplicateEntryException(Throwable arg0) {
		super(arg0);
		// TODO Auto-generated constructor stub
	}

}
